package morning.cat.springboot.demo.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/3/4 2:12 PM
 */
@Configuration
public class EventConfig {

    /**
     * Bean注解方式注入容器
     *
     * @param applicationContext
     * @return
     */
    @Bean
    public EventPublisher eventPublisher(ApplicationContext applicationContext) {
        return new EventPublisher(applicationContext);
    }
}
